package cn.qh.com.dto;

import java.util.Date;


import java.io.Serializable;

import lombok.*;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商品三级分类(Category)表实体类
 *
 * @author makejava
 * @since 2021-11-27 09:56:11
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel
@SuppressWarnings("serial")
public class CategoryDTO implements Serializable {
    /**
     * 分类id
     */
    @ApiModelProperty(name = "catId", value =
            "分类id", dataType = "java.lang.Long")
    private Long catId;
    /**
     * 分类名称
     */
    @ApiModelProperty(name = "name", value =
            "分类名称", dataType = "java.lang.String")
    private String name;
    /**
     * 父分类id
     */
    @ApiModelProperty(name = "parentcid", value =
            "父分类id", dataType = "java.lang.Long")
    private Long parentcid;
    /**
     * 层级
     */
    @ApiModelProperty(name = "catlevel", value =
            "层级", dataType = "java.lang.Integer")
    private Integer catlevel;
    /**
     * 排序
     */
    @ApiModelProperty(name = "sort", value =
            "排序", dataType = "java.lang.Integer")
    private Integer sort;
    /**
     * 图标地址
     */
    @ApiModelProperty(name = "icon", value =
            "图标地址", dataType = "java.lang.String")
    private String icon;
    /**
     * 计量单位
     */
    @ApiModelProperty(name = "productunit", value =
            "计量单位", dataType = "java.lang.String")
    private String productunit;
    /**
     * 商品数量
     */
    @ApiModelProperty(name = "productcount", value =
            "商品数量", dataType = "java.lang.Integer")
    private Integer productcount;
    /**
     * 乐观锁
     */
    @ApiModelProperty(name = "version", value =
            "乐观锁", dataType = "java.lang.Integer")
    private Integer version;
    /**逻辑删除*/
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createdTime", value =
            "创建时间", dataType = "java.util.Date")
    private Date createdTime;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updatedTime", value =
            "修改时间", dataType = "java.util.Date")
    private Date updatedTime;
}

